home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / amos-tools / eaissue3a / text / hints+tips.asc < prev    next >
Encoding:
Text File  |  1996-07-13  |  5.3 KB  |  159 lines

  1. ü
  2.                              AMOS Hints and Tips
  3.                              ~~~~~~~~~~~~~~~~~~~
  4. þ
  5.     Many programmers that write software in the popular language do try
  6.     their hardest to hide the fact that their creation was coded in Amos.
  7.     
  8. ú
  9.     There are many techniques that help you to disguise your program,
  10.     whether it's a game or utility; that it was coded in Amos.
  11.     
  12. ý
  13.     Well, first impressions do tend to count quite highly, and if the
  14.     Amos logo appears or you notice the default Amos arrow appear, it does
  15.     put some people off from judging the program fairly.
  16.     
  17. ÷
  18.     So, let's get in there with some tips...
  19.     
  20. û
  21.     1) When you compile your program as an executable, turn off the
  22.        "Create Default Screen" option. This will prevent the red screen
  23.        flickering at the beginning of your program. Don't forget though
  24.        that you will then have to begin your code by opening a screen.
  25.     
  26.     
  27. ÿ
  28. û
  29.     2) Use the "Break Off" command at the start of your coding which will
  30.        prevent people using the Ctrl+C keys to break into your famous
  31.        (Well maybe) creation.
  32.     
  33.     3) Use "Amos Lock" at the start of your code; this will prevent
  34.        Multitasking with the Amiga + A Keys.
  35.     
  36.     4) Don't forget to use "Hide" at the start of your program (again!) to
  37.        prevent the Amos arrow from appearing.
  38.     
  39.     5) If you insist on using the Amos default arrow (Amos Pro) then use
  40.        the palette of:
  41.     
  42. ú
  43.        Palette ,,,,,,,,,,,,,,,,,$0,$f33,$fff
  44.     
  45. ý
  46.        This will adapt the colours to the Workbench arrow.
  47.     
  48. û
  49.        If you're still a user of Amos Classic, then you'll have to
  50.        upgrade your version !
  51.     
  52. ÿ
  53. û
  54.     6) If you don't require the use of your mouse, keyboard + Drives; turn
  55.        off the operating system before the command "Do", but don't forget
  56.        to turn it back on if you need to access a disk or keyboard.
  57.     
  58. ú
  59.        Turning off the Operating System, speeds up your Amos programs and
  60.        prevents your external disk drives from constantly clicking.
  61.     
  62.        You can do this with the Multi Yes/No commands from an extension
  63.        such as Turbo_Plus or if you don't have the extension, use:
  64.     
  65. þ
  66.        FE=Execall(-132)      Turn Off system
  67.        FE=Execall(-138)      Turn On system
  68.     
  69. û
  70.     7) If you use an executable cruncher to cut down the size of your
  71.        program (after compiled - obviously!) this will prevent people
  72.        using Binary Hackers (Sorry - Editors) to find the Amos.Library in
  73.        your code.
  74.     
  75.     
  76.     
  77. ÿ
  78. û
  79.     8) If You use the Amos Professional Compiler, Turn the "Include
  80.        Amos.Library in Code" to the "On" selection, so that you don't need
  81.        the external library floating around on disk.
  82.     
  83.     9) When saving Banks to disks, don't use the extention .Abk, use
  84.        something like .Dat.
  85.     
  86.        This won't effect your program at all, but just hide the fact that
  87.        you are using Amos banks.
  88.     
  89. þ
  90.         Some good tips there from our friend Asa. Now, some more tips
  91.     which maybe someone out there will find usefull.
  92.     
  93. û
  94.      1) Try and avoid using Resource banks (AMOSPro) if possible,
  95.         especially when multitasking the program. Try and come up with a
  96.         similar DRAW routine, as they can sometimes crash quite horribly,
  97.         especially when something else is taking all of the processor time
  98.         whilst they are being drawn.
  99.     
  100.     
  101. ÿ
  102. û
  103.      2) Instead of having large Icon banks, why not save the images to a
  104.         screen and SPack it into memory. This reduces the size of the
  105.         file, plus it will crunch down even further when you crunch the
  106.         executable with something like stonecracker.
  107.     
  108.      3) If you use an A1200, avoid compiling your programs with an icon
  109.         bank in memory, as I have heard this causes nasty errors for
  110.         machines under WB3.
  111.     
  112.      4) Avoid using the commands in the Turbo extension, when compiling
  113.         with AMOSPro compiler. When you leave the program, it causes a
  114.         Suspend/Reboot message. Hence why I compiled this issue in Classic
  115.         Compiler, which has no problems at all, and is faster than AMOSPro
  116.         in certain areas.
  117.     
  118.      
  119.     
  120.     
  121.     
  122.     
  123. ÿ
  124. û
  125.      5) If you use the Classic Compiler, and the program you are compiling
  126.         requires the use of the current drawer (displayed when you type in
  127.         CD on CLI), then make sure you turn "RUN CLI PROGRAM IN
  128.         BACKGROUND" to OFF, as for some reason, when turned on, it always
  129.         sets the dir to SYS: when called from a different partition in CLI
  130.         command mode.
  131.     
  132.      6) Don't use the SQUASH functions in either of the compiler programs.
  133.         In AMOSPro, it is heavily bugged, more bugged in fact than the
  134.         Amazon rainforest. In classic AMOS, it ain't very powerfull. You
  135.         are best off using an executable cruncher such as Stonecracker or
  136.         Crunchmania.
  137.     
  138.      7) NEVER delete the .Bak file of your latest AMOS project, until you
  139.         know you have backed up the original. Ahem, I speak from
  140.         knowledge!
  141.     
  142.         
  143.     
  144.     
  145. ÿ
  146. þ
  147.         Well, I'm afraid that is all that I can think of. If you have any
  148.     really good tips that you would like to contribute to the section, or
  149.     have any kind of questions you want answering, then you know where you
  150.     can get in touch with me !!
  151.     
  152. ú
  153.     [Asa Margetts]
  154.     [Andrew "Mushroom" Kellett]
  155.     
  156. ÷
  157. EOF
  158.  
  159.